package org.xinjiang.data.migration.xinjiang.enums;

import lombok.Getter;
import org.xinjiang.data.migration.flush.enums.GzryCategoryEnum;

import java.util.Map;

/**
 * @author: 邢卫
 * @date: 2023年12月19日 11:33
 */
@Getter
public enum GzryConditionEnum {

    TABLE_SYS_USER("WEGOV_ORG_USER", "用户", Map.of("ST_ACCOUNT_STATUS", "STATUS_NORMAL")),

    TABLE_SYS_DEPART("WEGOV_ORG_TEAM", "部门", Map.of("ST_IS_DELETED", "0")),

    TABLE_SYS_DEPART_PARENT("WEGOV_ORG_MEMBER_TEAM", "部门父部门", Map.of("IN_LEVEL", "1", "st_type", "belong")),

    //社工
    TABLE_MST_COMMUNITY_WORKER("SQJZ_GZRY", "社区工作者", Map.of("LEIBIE", GzryCategoryEnum.社工.getSourceCode(), "SHIFOU_SHANCHU", "2")),
    //志愿者
    TABLE_MST_COMMUNITY_VOLUNTEER("SQJZ_ZYZGL", "社区志愿者", Map.of("SHIFOU_SHANCHU", "2")),
    //  9：派出所民警  1：司法所专职工作人员
    TABLE_MST_CORRECTIONTEAM_FUNCTIONARY("SQJZ_GZRY", "社区矫正工作人员", Map.of("LEIBIE", new String[]{
            GzryCategoryEnum.司法所专职工作人员.getSourceCode(),
            GzryCategoryEnum.派出所民警.getSourceCode()}, "SHIFOU_SHANCHU", "2"));


    private Map<String, Object> data;

    private String name;

    private String tableName;

    public static final String NOT = "not";

    public static final String NOT_PAGE = "notPage";


    GzryConditionEnum(String tableName, String name, Map<String, Object> data) {
        this.tableName = tableName;
        this.data = data;
        this.name = name;
    }
}
